//
//  OtherCell2.m
//  BuffetNews
//
//  Created by weidawei on 14-11-2.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "OtherCell2.h"

@implementation OtherCell2

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.img = [[UIImageView alloc] init];
        [self.contentView addSubview:self.img];
        self.label1 = [[UILabel alloc] init];
        [self.contentView addSubview:self.label1];
        [_label1 release];
        self.logoImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.logoImage];
        [_logoImage release];
        
        self.label2 = [[UILabel alloc] init];
        [self.contentView addSubview:self.label2];
        [_label2 release];
        
        // Initialization code
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.img.frame = self.contentView.frame;
    self.img.backgroundColor = [UIColor clearColor];
    self.label2.frame = CGRectMake(self.contentView.frame.origin.x, self.contentView.frame.size.height / 20 * 17, self.contentView.frame.size.width, self.contentView.frame.size.height / 8);
   
    
    self.label1.frame = self.contentView.frame;

}
- (void)dealloc
{
    [_img release];
    [_logoImage release];
    [_label2 release];
    [_label1 release];
    [super dealloc];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
